﻿<?xml version="1.0" encoding="utf-8" ?>

<!-- The planet configuration describes size and structure of planets and moons: All gameplay attributes -->
<PlanetConfiguration Description="this xml configuration contains all information for the PlanetGenerator.cs class."
                     xmlns="http://master-of-omega/PlanetConfiguration.xsd" >

  <!-- 
  We have 10 hypothetical orbits around of all our stars. The orbits corresponds to the solar planets 
  for menmonic purposes. 
   - Each orbit determins the size range of a planet. 
   - The distance from the star determins the temperature of a planet  
     (not very realistic, when you take the size and temperatures variations of
      real stars in account )
  -->
  <OrbitalConfiguration Description="We have 10 hypothetic orbits arround of all our suns">
    <Orbital Description="Mercury Orbital"  ID="0" AU="0.4" PlanetSizeRangeInRegions="1-2"   />
    <Orbital Description="Venus Orbital"  ID="1" AU="0.7" PlanetSizeRangeInRegions="2-5" />
    <Orbital Description="Earth Orbital"  ID="2" AU="1.0" PlanetSizeRangeInRegions="2-5" />
    <Orbital Description="Asteroids Orbital, Lost Planet"  ID="3" AU="1.6" PlanetSizeRangeInRegions="3-6" />
    <Orbital Description="Mars Orbital"  ID="4" AU="2.8" PlanetSizeRangeInRegions="2-6" />
    <Orbital Description="Jupiter Orbital"  ID="5" AU="5.2" PlanetSizeRangeInRegions="4-12"/>
    <Orbital Description="Saturn Orbital"  ID="6" AU="10" PlanetSizeRangeInRegions="4-12"/>
    <Orbital Description="Uranus Orbital"  ID="7" AU="19.6" PlanetSizeRangeInRegions="4-12" />
    <Orbital Description="Neptune Orbital"  ID="8" AU="38.8" PlanetSizeRangeInRegions="2-8" />
    <Orbital Description="Pluto is a planet :-)"  ID="9" AU="77.2"	PlanetSizeRangeInRegions="1-3"  />
  </OrbitalConfiguration>

  <PlanetOrbital Description="Calculate the chances of Planets in dependency of the size of the star. The chances are cumulative. Hint: We currently support only 10 Orbital rings arround a star">
    <Configuration StarLuminosity="I" Description="Super Giant Stars" >
      <PlanetChances ChancePerOrbital="0=0%, 1=0%, 2=0%, 3=0%, 4=0%, 5=10%, 6=15%, 7=15%, 8=10%, 9=10% " />
    </Configuration>
    <Configuration StarLuminosity="II" Description="Bright Giants" >
      <PlanetChances ChancePerOrbital="0=0%, 1=0%, 2=0%, 3=0%, 4=0%, 5=10%, 6=15%, 7=15%, 8=10%, 9=10% " />
    </Configuration>
    <Configuration StarLuminosity="III" Description="Normal Giants" >
      <PlanetChances ChancePerOrbital="0=0%, 1=0%, 2=10%, 3=10%, 4=10%, 5=10%, 6=10%, 7=10%, 8=10%, 9=10% " />
    </Configuration>
    <Configuration StarLuminosity="IV" Description="Sub Giants" >
      <PlanetChances ChancePerOrbital="0=0%, 1=0%, 2=10%, 3=10%, 4=10%, 5=10%, 6=10%, 7=10%, 8=10%, 9=10% " />
    </Configuration>
    <Configuration StarLuminosity="V" Description="Main Sequence (dwarfs like our sun)" >
      <PlanetChances ChancePerOrbital="0=5%, 1=5%, 2=5%, 3=5%, 4=5%, 5=5%, 6=10%, 7=10%, 8=10%, 9=10% " />
    </Configuration>
    <Configuration StarLuminosity="VI" Description="Sub dwarfs" >
      <PlanetChances ChancePerOrbital="0=0%, 1=0%, 2=10%, 3=10%, 4=10%, 5=0%, 6=0%, 7=0%, 8=0%, 9=0% " />
    </Configuration>
    <Configuration StarLuminosity="VII" Description="White dwarfs" >
      <PlanetChances ChancePerOrbital="0=0%, 1=0%, 2=0%, 3=0%, 4=0%, 5=0%, 6=5%, 7=5%, 8=5%, 9=5% " />
    </Configuration>
  </PlanetOrbital>

  <PlanetDiameterRegions Description="Diameter of planet kilometers, average for this size class" >
    <RegionToDiameter Region="1"  Diameter="743"	/>
    <RegionToDiameter Region="2"	Diameter="1250"	/>
    <RegionToDiameter Region="3"	Diameter="2100"	/>
    <RegionToDiameter Region="4"	Diameter="3536"	/>
    <RegionToDiameter Region="5"	Diameter="5946"	/>
    <RegionToDiameter Region="6"	Diameter="10000"	/>
    <RegionToDiameter Region="7"	Diameter="16818"	/>
    <RegionToDiameter Region="8"	Diameter="28284"	/>
    <RegionToDiameter Region="9"	Diameter="47568"	/>
    <RegionToDiameter Region="10"	Diameter="80000"	/>
    <RegionToDiameter Region="11"	Diameter="134543"	/>
    <RegionToDiameter Region="12"	Diameter="226284"	/>
    <RegionToDiameter Region="13"	Diameter="1376000"	/>
  </PlanetDiameterRegions>

  <PlanetTypes Description="This is an array of planet types">
    <PlanetType MapType="Barren" SizeRange="1-8" OrbitalRange="0-9"  />
    <PlanetType MapType="Green" SizeRange="3-6" OrbitalRange="1-5"  />
    <PlanetType MapType="Red" SizeRange="1-6" OrbitalRange="0-2"  />
    <PlanetType MapType="Terra" SizeRange="3-6" OrbitalRange="2-5"  />
    <PlanetType MapType="Water" SizeRange="3-6" OrbitalRange="2-4"  />
    <PlanetType MapType="Yellow" SizeRange="1-10" OrbitalRange="1-7"  />
    <PlanetType MapType="Ice" SizeRange="3-7" OrbitalRange="7-9"  />
    <PlanetType MapType="Gas" SizeRange="6-13" OrbitalRange="3-9"  />
  </PlanetTypes>

  <PlanetMaps Description="This Configuration assigns the planet textures to the planet type">
    <PlanetMap MapType="Barren">
      PISNSSBarr1.png
    </PlanetMap>
    <PlanetMap MapType="Barren">
      PISNSSBarr11.png
    </PlanetMap>
    <PlanetMap MapType="Barren">
      PISNSSBarr14.png
    </PlanetMap>
    <PlanetMap MapType="Barren">
      PISNSSBarr2.png
    </PlanetMap>
    <PlanetMap MapType="Barren">
      PISNSSBarr3.png
    </PlanetMap>
    <PlanetMap MapType="Barren">
      PISNSSBarr4.png
    </PlanetMap>
    <PlanetMap MapType="Barren">
      PISNSSBarr5.png
    </PlanetMap>
    <PlanetMap MapType="Barren">
      PISNSSBarr6.png
    </PlanetMap>
    <PlanetMap MapType="Barren">
      PISNSSBarr7.png
    </PlanetMap>
    <PlanetMap MapType="Barren">
      PISNSSBarr8.png
    </PlanetMap>
    <PlanetMap MapType="Barren">
      PISNSSBarr9.png
    </PlanetMap>
    <PlanetMap MapType="Gas">
      PISNSSBlue5.png
    </PlanetMap>
    <PlanetMap MapType="Gas">
      PISNSSGas4.png
    </PlanetMap>
    <PlanetMap MapType="Gas">
      PISNSSGas6.png
    </PlanetMap>
    <PlanetMap MapType="Green">
      PISNSSGree2.png
    </PlanetMap>
    <PlanetMap MapType="Green">
      PISNSSGree3.png
    </PlanetMap>
    <PlanetMap MapType="Green">
      PISNSSGree4.png
    </PlanetMap>
    <PlanetMap MapType="Green">
      PISNSSGree5.png
    </PlanetMap>
    <PlanetMap MapType="Green">
      PISNSSGree6.png
    </PlanetMap>
    <PlanetMap MapType="Green">
      PISNSSGree7.png
    </PlanetMap>
    <PlanetMap MapType="Green">
      PISNSSGree8.png
    </PlanetMap>
    <PlanetMap MapType="Green">
      PISNSSGree9.png
    </PlanetMap>
    <PlanetMap MapType="Green">
      PISNSSGreen3.png
    </PlanetMap>
    <PlanetMap MapType="Ice">
      PISNSSIce1.png
    </PlanetMap>
    <PlanetMap MapType="Ice">
      PISNSSIce10.png
    </PlanetMap>
    <PlanetMap MapType="Ice">
      PISNSSIce2.png
    </PlanetMap>
    <PlanetMap MapType="Ice">
      PISNSSIce3.png
    </PlanetMap>
    <PlanetMap MapType="Ice">
      PISNSSIce4.png
    </PlanetMap>
    <PlanetMap MapType="Ice">
      PISNSSIce6.png
    </PlanetMap>
    <PlanetMap MapType="Ice">
      PISNSSIce7.png
    </PlanetMap>
    <PlanetMap MapType="Ice">
      PISNSSIce8.png
    </PlanetMap>
    <PlanetMap MapType="Ice">
      PISNSSIce9.png
    </PlanetMap>
    <PlanetMap MapType="Red">
      PISNSSRed1.png
    </PlanetMap>
    <PlanetMap MapType="Red">
      PISNSSRed2.png
    </PlanetMap>
    <PlanetMap MapType="Barren">
      PISNSSRedBarr6.png
    </PlanetMap>
    <PlanetMap MapType="Terra">
      PISNSSTerr1.png
    </PlanetMap>
    <PlanetMap MapType="Terra">
      PISNSSTerr10.png
    </PlanetMap>
    <PlanetMap MapType="Terra">
      PISNSSTerr11.png
    </PlanetMap>
    <PlanetMap MapType="Terra">
      PISNSSTerr2.png
    </PlanetMap>
    <PlanetMap MapType="Terra">
      PISNSSTerr3.png
    </PlanetMap>
    <PlanetMap MapType="Terra">
      PISNSSTerr4.png
    </PlanetMap>
    <PlanetMap MapType="Terra">
      PISNSSTerr5.png
    </PlanetMap>
    <PlanetMap MapType="Terra">
      PISNSSTerr6.png
    </PlanetMap>
    <PlanetMap MapType="Terra">
      PISNSSTerr7.png
    </PlanetMap>
    <PlanetMap MapType="Terra">
      PISNSSTerr8.png
    </PlanetMap>
    <PlanetMap MapType="Terra">
      PISNSSTerr9.png
    </PlanetMap>
    <PlanetMap MapType="Water">
      PISNSSWat7.png
    </PlanetMap>
    <PlanetMap MapType="Yellow">
      PISNSSYell4.png
    </PlanetMap>
    <PlanetMap MapType="Yellow">
      PISNSSYell5.png
    </PlanetMap>
    <PlanetMap MapType="Yellow">
      PISNSSYell6.png
    </PlanetMap>
    <PlanetMap MapType="Barren">
      PISNSSYellBarr1.png
    </PlanetMap>
    <PlanetMap MapType="Barren">
      PISNSSYellBarr2.png
    </PlanetMap>
    <PlanetMap MapType="Barren">
      PISNSSYellBarr3.png
    </PlanetMap>
    <PlanetMap MapType="Barren">
      PISNSSYellBarr4.png
    </PlanetMap>
    <PlanetMap MapType="Barren">
      PISNSSYellBarr5.png
    </PlanetMap>
  </PlanetMaps>

  <Moons Description="Configuration of moons for a planet">
    <!--The planet size slot ratio determines, how many moon slots are given for a planet size
        e.g.   PlanetSIze / PlanetSizeSlotRation = MoonSlots
        hint: Moons can't be large as a planet
    -->
    <MoonSlots MinPlanetSize="3"
               PlanetSizeSlotRatio="3"
               MoonChancePerSlotInPercent="50"
               MoonSizeRange="1-4"
               />

    <MoonTypes Description="This is an array of planet types">
      <MoonType MapType="Barren" SizeRange="1-4" />
      <MoonType MapType="Green" SizeRange="3-4" />
      <MoonType MapType="Red" SizeRange="1-2" />
      <MoonType MapType="Terra" SizeRange="3-4" />
      <MoonType MapType="Water" SizeRange="3-4" />
      <MoonType MapType="Yellow" SizeRange="2-4" />
      <MoonType MapType="Ice" SizeRange="1-4" />
      <MoonType MapType="Gas" SizeRange="3-4" />
    </MoonTypes>
  </Moons>

  <!-- The following entries corresponds with a hard coded enum -->

  <PlanetaryMineralRichness Description="Values for planetary mineral richness>" >
    <MinValue ID="0" Label="Very Poor" Dices="10" />
    <MinValue ID="1" Label="Poor" Dices="20"/>
    <MinValue ID="2" Label="Abundant" Dices="20"/>
    <MinValue ID="3" Label="Rich" Dices="10"/>
    <MinValue ID="4" Label="Very Rich" Dices="10"/>
    <MinValue ID="5" Label="Ultra Rich" Dices="10"/>
  </PlanetaryMineralRichness>

  <!-- The following entries corresponds with a hard coded enum -->

  <PlanetaryBioDiversity Description="Biodiversity of a region of a planet" >
    <BioValue ID="0" Label="Homogeneous" DicesPerOrbital="0=10, 1=10, 2=10, 3=10, 4=10, 5=10, 6=10, 7=10, 8=10, 9=10" />
    <BioValue ID="1" Label="Similar" DicesPerOrbital="0=10, 1=10, 2=10, 3=10, 4=10, 5=10, 6=10, 7=10, 8=10, 9=10 " />
    <BioValue ID="2" Label="Heterogeneous" DicesPerOrbital="0=10, 1=10, 2=10, 3=10, 4=10, 5=10, 6=5, 7=5, 8=5, 9=0 " />
    <BioValue ID="3" Label="Diverse" DicesPerOrbital="0=10, 1=10, 2=10, 3=10, 4=10, 5=10, 6=5, 7=5, 8=0, 9=0 " />
    <BioValue ID="4" Label="Very Diverse" DicesPerOrbital="0=5, 1=5, 2=20, 3=20, 4=20, 5=10, 6=5, 7=0, 8=0, 9=0 " />
  </PlanetaryBioDiversity>

  <PlanetaryFertilityEfficiency Description="Fertility of the eco system" >
    <FertValue ID="0" Label="Toxic" DicesPerBioDiv="0=50, 1=30, 2=10, 3=0, 4=0" />
    <FertValue ID="1" Label="Hostile" DicesPerBioDiv="0=30, 1=20, 2=10, 3=0, 4=0"/>
    <FertValue ID="2" Label="Barren" DicesPerBioDiv="0=20, 1=10, 2=10, 3=10, 4=0"/>
    <FertValue ID="3" Label="Subsistence" DicesPerBioDiv="0=20, 1=10, 2=10, 3=10, 4=5"/>
    <FertValue ID="4" Label="Hard Scrabble" DicesPerBioDiv="0=10, 1=10, 2=10, 3=10, 4=10"/>
    <FertValue ID="5" Label="Arable" DicesPerBioDiv="0=10, 1=10, 2=10, 3=10, 4=10"/>
    <FertValue ID="6" Label="Fertile" DicesPerBioDiv="0=0, 1=10, 2=20, 3=20, 4=10"/>
    <FertValue ID="7" Label="Alluvial" DicesPerBioDiv="0=0, 1=10, 2=20, 3=10, 4=20"/>
    <FertValue ID="8" Label="Lush" DicesPerBioDiv="0=0, 1=0, 2=10, 3=30, 4=50"/>
  </PlanetaryFertilityEfficiency>

  <PlanetaryAtmosphere Description="Atmosphere of a planet 0-100" >
    <PlanetSizeToAtmosphere >
      <Size Regions="1" AtmosphereRange="0-10"  />
      <Size Regions="2" AtmosphereRange="0-10"  />
      <Size Regions="3" AtmosphereRange="0-30"  />
      <Size Regions="4" AtmosphereRange="10-40"  />
      <Size Regions="5" AtmosphereRange="20-100"  />
      <Size Regions="6" AtmosphereRange="30-100"  />
      <Size Regions="7" AtmosphereRange="40-100"  />
      <Size Regions="8" AtmosphereRange="50-100"  />
      <Size Regions="9" AtmosphereRange="60-100"  />
      <Size Regions="10" AtmosphereRange="60-100"  />
      <Size Regions="11" AtmosphereRange="70-100"  />
      <Size Regions="12" AtmosphereRange="90-100"  />
      <Size Regions="13" AtmosphereRange="90-100"  />
    </PlanetSizeToAtmosphere >
  </PlanetaryAtmosphere>

  <PlanetaryTemperature Description="Temperature in kelvin of a planet in a range from 0 to 500" >
    <PlanetTempToOrbit >
      <Size Orbit="0" TemperatureRange="1000-500"  />
      <Size Orbit="1" TemperatureRange="500-400"  />
      <Size Orbit="2" TemperatureRange="500-300"  />
      <Size Orbit="3" TemperatureRange="500-350"  />
      <Size Orbit="4" TemperatureRange="400-200"  />
      <Size Orbit="5" TemperatureRange="350-150"  />
      <Size Orbit="6" TemperatureRange="200-100"  />
      <Size Orbit="7" TemperatureRange="200-100"  />
      <Size Orbit="8" TemperatureRange="100-50"  />
      <Size Orbit="9" TemperatureRange="100-50"  />
    </PlanetTempToOrbit>
  </PlanetaryTemperature>

  <PlanetaryHabilityRings Description="Hability zone of a planet for the given species" >
    <HabValue ID="0" Label="ParadiseRing" />
    <HabValue ID="1" Label="SweetSpotRing" />
    <HabValue ID="2" Label="G1Ring" />
    <HabValue ID="3" Label="G2Ring" />
    <HabValue ID="4" Label="Y1Ring" />
    <HabValue ID="5" Label="Y2Ring" />
    <HabValue ID="6" Label="R1Ring" />
    <HabValue ID="7" Label="R2Ring" />
  </PlanetaryHabilityRings>

  <PlanetaryGravity Description="Gravity of the planet">
    <GravValue ID="0" Label="NegligibleGravity" />
    <GravValue ID="1" Label="LowGravity" />
    <GravValue ID="2" Label="MediumGrav"	/>
    <GravValue ID="3" Label="HighGrav	"	/>
    <GravValue ID="4" Label="CrushingGrav"	/>
  </PlanetaryGravity>

  <PlanetaryRegionTypes Description="The three region types of a planet" >
    <RegionType ID="0" Label="Plain" BackgroundImage="PlainBackground.jpg"  Icon="/Graphics/UI/Icon_TerrPlain.png" />
    <RegionType ID="1" Label="Broken" BackgroundImage="BrokenBackground.jpg" Icon="/Graphics/UI/Icon_TerrBrok.png" />
    <RegionType ID="2" Label="Mountain" BackgroundImage="MountainBackground.png" Icon="/Graphics/UI/Icon_TerrMount.png" />
  </PlanetaryRegionTypes>

</PlanetConfiguration>